package com.example.test;

import android.app.Application;

import com.blankj.utilcode.util.Utils;
import com.example.test.service.TraceServiceImpl;
import com.example.test.tools.MyUtils;
import com.xdandroid.hellodaemon.DaemonEnv;

public class MyApp extends Application {
    private static final String TAG = MyApp.class.getSimpleName();
    private static final int wakeUpInterval = 60 * 1000;//1min唤醒

    @Override
    public void onCreate() {
        super.onCreate();
        Utils.init(this);
        MyUtils.writeLogcat(TAG, "APP启动");
        DaemonEnv.initialize(this, TraceServiceImpl.class, wakeUpInterval);
    }
}
